﻿namespace CommonUtils
{
    /// <summary>
    /// 键值对
    /// </summary>
    public class StringStringMap : Map<string, string>
    {
        public StringStringMap() { }

        public StringStringMap(string key, string value) : base(key, value) { }

        public StringStringMap(params string[] keyValues)
        {
            foreach (var keyValue in keyValues)
            {
                var index = keyValue.IndexOf(':');
                Add(keyValue.Substring(0, index), keyValue.Substring(index + 1));
            }
        }
    }
}
